<template>
  <div class="upload-container">
    <image-handle
      type="good"
      :sum="1"
      :is-button="true"
      list-type="false"
      :show-list="false"
      btn-title="插入图片"
      @returnFile="getFile"
    />
  </div>
</template>

<script>
import ImageHandle from '@/components/Image'

export default {

  name: 'EditorUpload',

  components: { ImageHandle },

  methods: {

    getFile(file) {
      const data = file[file.length - 1]
      this.$emit('successCBK', [data])
    }

  }
}
</script>
